package com.itheima.HomeWork.homework04;

public abstract class WorkProple {
    private String name;
    private char sex;
    private int age;

    abstract void work();

    public WorkProple() {
    }

    public WorkProple(String name, char sex, int age) {
        this.name = name;
        this.sex = sex;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public char getSex() {
        return sex;
    }

    public void setSex(char sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}

class JavaTeacher extends WorkProple {

    @Override
    void work() {

    }
}

class UITeacher extends WorkProple implements Painting {
    @Override
    void work() {
        System.out.println(getName() + "UI讲师上班");
    }

    public UITeacher(String name, char sex, int age) {
        super(name, sex, age);
    }

    @Override
    public void pain() {
        System.out.println(getName() + "UI讲师学画画");
    }
}